package cn.knight.org.mapper;

import cn.knight.basic.mapper.BaseMapper;
import cn.knight.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByUserName(String username);

    void saveEmployeeRole(@Param("id") Long id, @Param("ids") List<Long> roles);

    void removeEmployeeRole(Long id);
}
